
        <div id="log" class="span12"></div>
        <div class="row-fluid">
            <div class="span12">
                <button class="btn btn-primary btn-block" id="reload-scan-ip-log" type="submit">{{ _("Refresh") }}</button>
            </div> <!-- .span12 -->
        </div> <!-- .row-fluid -->

<script type="text/javascript">
    function loadScanIpLog(){
        $.ajax({
            type: 'GET',
            url: '/module/gae_proxy/control/scan_ip?cmd=get_scan_ip_log',
            dataType: 'html',
            success: function(result) {
                $('#log').html(result.replace(/\n/g, '<br>'));
                $('#log').scrollTop($('#log')[0].scrollHeight);
            },
            error: function(){
                tip('{{ _("Failed reading the log") }}', 'error');
            }
        });
    }
    loadScanIpLog();
</script>
<script type="text/javascript">
    $('#reload-scan-ip-log').click(function(){
        loadScanIpLog();
    });
</script>